package com.zhangws.comman.util

import android.util.TypedValue
import com.zhangws.comman.BaseApplication

/**
 *Time:2023/6/8
 *Author:zhangwenshuan
 *Description:
 *since version
 *
 */
object ResourceUtils {
    fun spToPixel(sp:Float):Float{
        return  TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP,
            sp, BaseApplication.context.resources.displayMetrics
        )
    }
}